const used_publish = () =>
    import('@/views/info/used-publish');
const used_detail = () =>
    import('@/views/info/used-detail');
const used = () =>
    import('@/views/info/used.vue');
const my_used = () =>
    import('@/views/info/my_used.vue');
const client_used = () =>
    import('@/views/info/client-used');
const client_used_detail = () =>
    import('@/views/info/client-used/detail');
const rent_publish = () =>
    import('@/views/info/rent-publish');
const rent_detail = () =>
    import('@/views/info/rent-detail');
const rent = () =>
    import('@/views/info/rent.vue');
const my_rent = () =>
    import('@/views/info/my_rent.vue');
const project = () =>
    import('@/views/info/project.vue');
const my_project = () =>
    import('@/views/info/my_project.vue');
const project_publish = () =>
    import('@/views/info/project-publish');
const project_detail = () =>
    import('@/views/info/project-detail');
const workers = () =>
    import('@/views/info/employ_workers.vue');
const my_workers = () =>
    import('@/views/info/my_workers.vue');
const workers_publish = () =>
    import('@/views/info/employ-workers-publish');
const workers_detail = () =>
    import('@/views/info/employ-workers-detail');
const CommunityTabbar = () =>
    import('@/components/CommunityTabbar/');
const shop_detail = () =>
    import('@/views/info/shop_detail.vue');
const xi_tpt = () => import('@/views/info/xitpt.vue');



export default [{
    path: '/info/used',
    name: 'used',
    meta: {
        keepAlive: true,
        title: '二手转让资讯',
        login: false
    },
    components: {
        default: used,
        // tabbar: CommunityTabbar
    },
    component: used
},
{
    path: '/info/xitpt',
    name: 'xitpt',
    meta: {
        title: '图片选择',
        keepAlive: true
    },
    component: xi_tpt
},
{
    path: '/info/rent',
    name: 'rent',
    meta: {
        keepAlive: true,
        title: '工具出租资讯',
        login: false
    },
    components: {
        default: rent,
    },
},
{
    path: '/info/my-used',
    name: 'my-used',
    meta: {
        keepAlive: true,
        title: '我的二手',
        login: false
    },
    component: my_used
},
{
    path: '/info/client-used',
    name: 'client-used',
    meta: {
        keepAlive: true,
        title: '客户二手',
        login: false
    },
    component: client_used
},
{
    path: '/info/client-used-detail/:usedId',
    name: 'client-used-detail',
    props: true,
    meta: {
        keepAlive: true,
        title: '客户二手详情页',
        login: false
    },
    component: client_used_detail
},
{
    path: '/info/my-rent',
    name: 'my-rent',
    meta: {
        keepAlive: true,
        title: '我的出租',
        login: false
    },
    component: my_rent
},
{
    path: '/info/workers',
    name: 'workers',
    meta: {
        keepAlive: false,
        title: '万师傅在线',
        login: false,
        deepth: 1,
    },
    components: {
        default: workers,
    },
},
{
    path: '/info/my-workers',
    name: 'my-workers',
    meta: {
        keepAlive: true,
        title: '施工找活',
    },
    component: my_workers
},
{
    path: '/info/project',
    name: 'project',
    meta: {

        title: '工程发包资讯',
        deepth: 1,
    },
    components: {
        default: project,
    },
},
{
    path: '/info/my-project',
    name: 'my-project',
    meta: {
        keepAlive: true,
        title: '我的工程',
    },
    component: my_project
},
{
    path: '/shop/detail',
    name: 'shop-detail',
    meta: {
        keepAlive: false,
        title: '店铺详情',
    },
    components: {
        default: shop_detail,
    },
},
{
    path: '/info/used-publish/:usedId',
    name: 'used-publish',
    props: true,
    component: used_publish,
    meta: {
        title: '二手转让信息填写'
    }
},
{
    path: '/info/used-detail/:usedId',
    name: 'used-detail',
    props: true,
    component: used_detail,
    meta: {
        title: '二手详情'
    }

},
{
    path: '/info/rent-publish/:rentId',
    name: 'rent-publish',
    props: true,
    component: rent_publish,
    meta: {
        title: '工具出租信息填写'
    }
},
{
    path: '/info/rent-detail/:rentId',
    name: 'rent-detail',
    props: true,
    component: rent_detail,
    meta: {
        title: '工具出租'
    }
},
{
    path: '/info/workers-publish/:teamsId',
    name: 'workers-publish',
    props: true,
    component: workers_publish
},
{
    path: '/info/workers-detail/:teamsId',
    name: 'workers-detail',
    props: true,
    component: workers_detail,
    meta: {
        deepth: 2,
    }
},
{
    path: '/info/project-publish/:projectId',
    name: 'project-publish',
    props: true,
    component: project_publish,
    meta: {
        // keepAlive: true,
    }
},
{
    path: '/info/project-detail/:projectId',
    name: 'project-detail',
    component: project_detail,
    meta: {
        deepth: 2,
    }
},

];
